package com.itmayiedu.api.controller;

import com.itmayiedu.feign.MemberApiFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 订单服务接口
 * @author: liucancan
 * @create: 2018-11-03 17:54
 **/
@RestController
public class FeignOrderController {

    // 注入Feign客户端
    @Autowired
    private MemberApiFeign memberApiFeign;

    /**
     * 订单服务调用会员服务
     *
     * @return
     */
    @RequestMapping("/getFeignOrder")
    public String getOrder() {
        return memberApiFeign.getMember();
    }
}
